import request from '@/utils/request'

const squareRobotApi = {
    /**
     * 广场配置详情
     */
    detail(): Promise<any> {
        return request.get({
            url: '/square/setting/detail'
        })
    },

    /**
     * 广场配置保存
     */
    save(params: {
        robot?: any;
        draws?: any;
    }): Promise<any> {
        return request.post({
            url: '/square/setting/save',
            params
        })
    }
}

export default squareRobotApi
